package com.gao.mybatis.session;

import com.gao.mybatis.configuration.Configuration;

import java.io.IOException;
import java.util.List;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2020-03-29 18:06
 */
public interface SqlSession {

    <E> List<E> selectList(String stateId, Object... params) throws Exception;

    <T> T selectOne(String stateId, Object... params) throws Exception;

    <T> T getMapper(Class<T> type) throws Exception;

    Configuration getConfiguration();
}
